﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace bomberbide
{
    public class powerup : acteur
    {
        virtual public void Modif(bomber Bomber, GameTime gameTime)
        {
        }

        public static powerup Generate(Random heysalut, ContentManager Content)
        {
            powerup toSpawn = new powerup();
            int prout = heysalut.Next(1, 100);
            if (prout <= 33 && prout >= 0)
                toSpawn = new ExplosionExpander(Content);
            else if (prout > 33 && prout <= 66)
                toSpawn = new ExtraBomb(Content);
            else if (prout > 66 && prout <= 80)
                toSpawn = new SpeedUp(Content);
            else if (prout > 80 && prout <= 90)
                toSpawn = new Skull(Content);
            else if (prout > 90 && prout <= 93)
                toSpawn = new Kick(Content);
            else if (prout > 93 && prout <= 96)
                toSpawn = new RemoteControl(Content);
            else if (prout > 96 && prout <= 100)
                toSpawn = new MaximumExplosion(Content);

            return (toSpawn);
        }
    }
}
